Optimal. Leaf size=80 \[ -\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{h (g+h x)}+\frac {b f p q \log (e+f x)}{h (f g-e h)}-\frac {b f p q \log (g+h x)}{h (f g-e h)} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.08, antiderivative size = 80, normalized size of antiderivative = 1.00, number of steps used = 5, number of rules used = 4, integrand size = 26, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.154, Rules used = {2395, 36, 31, 2445} \[ -\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{h (g+h x)}+\frac {b f p q \log (e+f x)}{h (f g-e h)}-\frac {b f p q \log (g+h x)}{h (f g-e h)} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 31
Rule 36
Rule 2395
Rule 2445
Rubi steps
\begin {align*} \int \frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{(g+h x)^2} \, dx &=\operatorname {Subst}\left (\int \frac {a+b \log \left (c d^q (e+f x)^{p q}\right )}{(g+h x)^2} \, dx,c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=-\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{h (g+h x)}+\operatorname {Subst}\left (\frac {(b f p q) \int \frac {1}{(e+f x) (g+h x)} \, dx}{h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=-\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{h (g+h x)}-\operatorname {Subst}\left (\frac {(b f p q) \int \frac {1}{g+h x} \, dx}{f g-e h},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )+\operatorname {Subst}\left (\frac {\left (b f^2 p q\right ) \int \frac {1}{e+f x} \, dx}{h (f g-e h)},c d^q (e+f x)^{p q},c \left (d (e+f x)^p\right )^q\right )\\ &=\frac {b f p q \log (e+f x)}{h (f g-e h)}-\frac {a+b \log \left (c \left (d (e+f x)^p\right )^q\right )}{h (g+h x)}-\frac {b f p q \log (g+h x)}{h (f g-e h)}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A] time = 0.10, size = 69, normalized size = 0.86 \[ \frac {-\frac {a}{g+h x}-\frac {b \log \left (c \left (d (e+f x)^p\right )^q\right )}{g+h x}+\frac {b f p q (\log (e+f x)-\log (g+h x))}{f g-e h}}{h} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
fricas [A] time = 0.45, size = 113, normalized size = 1.41 \[ -\frac {a f g - a e h + {\left (b f g - b e h\right )} q \log \relax (d) - {\left (b f h p q x + b e h p q\right )} \log \left (f x + e\right ) + {\left (b f h p q x + b f g p q\right )} \log \left (h x + g\right ) + {\left (b f g - b e h\right )} \log \relax (c)}{f g^{2} h - e g h^{2} + {\left (f g h^{2} - e h^{3}\right )} x} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
giac [A] time = 0.17, size = 129, normalized size = 1.61 \[ \frac {b f h p q x \log \left (f x + e\right ) - b f h p q x \log \left (h x + g\right ) + b h p q e \log \left (f x + e\right ) - b f g p q \log \left (h x + g\right ) - b f g q \log \relax (d) + b h q e \log \relax (d) - b f g \log \relax (c) + b h e \log \relax (c) - a f g + a h e}{f g h^{2} x - h^{3} x e + f g^{2} h - g h^{2} e} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maple [F] time = 0.37, size = 0, normalized size = 0.00 \[ \int \frac {b \ln \left (c \left (d \left (f x +e \right )^{p}\right )^{q}\right )+a}{\left (h x +g \right )^{2}}\, dx \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
maxima [A] time = 0.51, size = 90, normalized size = 1.12 \[ b f p q {\left (\frac {\log \left (f x + e\right )}{f g h - e h^{2}} - \frac {\log \left (h x + g\right )}{f g h - e h^{2}}\right )} - \frac {b \log \left (\left ({\left (f x + e\right )}^{p} d\right )^{q} c\right )}{h^{2} x + g h} - \frac {a}{h^{2} x + g h} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
mupad [B] time = 2.04, size = 89, normalized size = 1.11 \[ -\frac {a}{x\,h^2+g\,h}-\frac {b\,\ln \left (c\,{\left (d\,{\left (e+f\,x\right )}^p\right )}^q\right )}{h\,\left (g+h\,x\right )}+\frac {b\,f\,p\,q\,\mathrm {atan}\left (\frac {f\,g\,2{}\mathrm {i}+f\,h\,x\,2{}\mathrm {i}}{e\,h-f\,g}+1{}\mathrm {i}\right )\,2{}\mathrm {i}}{h\,\left (e\,h-f\,g\right )} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
sympy [F(-2)] time = 0.00, size = 0, normalized size = 0.00 \[ \text {Exception raised: NotImplementedError} \]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________